// PoseDefine.h: interface for the CPoseDefine class.
//
//////////////////////////////////////////////////////////////////////

#if !defined(AFX_POSEDEFINE_H__AF659DD4_87BD_44D4_88A6_C361635BDE71__INCLUDED_)
#define AFX_POSEDEFINE_H__AF659DD4_87BD_44D4_88A6_C361635BDE71__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000

class CPoseDefine:public CObject
{
	DECLARE_SERIAL (CPoseDefine)
public: 
	float Z;
	float Y;
	float X;
	int	  m_iType;
	CPoseDefine();
	CPoseDefine(float x,float y,float z,int iType);
	virtual ~CPoseDefine();
	void Serialize (CArchive& ar);
	CString ToString()
	{
		CString strTemp=_T("");
		strTemp.Format(_T("X:%.3f Y:%.3f Z:%.3f Type:%d \r\n"),this->X,this->Y,this->Z,this->m_iType);
		OutputDebugString(strTemp);
		return strTemp;
	};

	CPoseDefine(CPoseDefine& src)
	{
		*this = src;
	};
	
	CPoseDefine& operator=(const CPoseDefine& src)
	{
		X= src.X;
		Y= src.Y;
		Z= src.Z; 
		m_iType=src.m_iType;
		return *this;
	};

	CPoseDefine& operator=(const CPoseDefine* src)
	{
		ASSERT(src!=NULL);
		if(src==this) return *this;
		X= src->X;
		Y= src->Y;
		Z= src->Z; 
		m_iType=src->m_iType;
		return *this;
	};
}; 
#endif // !defined(AFX_POSEDEFINE_H__AF659DD4_87BD_44D4_88A6_C361635BDE71__INCLUDED_)
